Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities / Determining Point Affine Combinations


Q3Point2D_AffineComb

You can use the Q3Point2D_AffineComb function to determine the two-dimensional point that is the affine combination of an array of points.

TQ3Point2D *Q3Point2D_AffineComb (
const TQ3Point2D *points2D, 
const float *weights, 
unsigned long nPoints, 
TQ3Point2D *result);
points2D
A pointer to an array of two-dimensional points.
weights
A pointer to an array of weights. The sum of the weights must be 1.0.
nPoints
The number of points in the points2D array.
result
On exit, the point that is the affine combination of the points in points2D having the weights in the weights array.
DESCRIPTION
The Q3Point2D_AffineComb function returns, as its function result and in the result parameter, the point that is the affine combination of the points in the array points2D having the weights in the array weights.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996